<?php
namespace PsiFramework\Classes\Util\Database\Query;

import("Classes.Util.Database.Query.SqlParameter");

use \PsiFramework\Classes\Util\Database\Query\SqlParameter;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The SqlValue class allows to represent a sql value
 *
 * @package classes.util.xpersist.sql
 */
class SqlValue extends SqlParameter
{

    protected /*mixed*/    $_value ;
    protected /*string*/ $_alias = null ;

    /**
     * SqlValue constructor
     *
     * @param $value    the value
     */
    public function __construct(/*mixed*/ $value, /*string*/ $alias=null)
    {
        $this->_value = $value ;
        $this->_alias = $alias ;
    }

    /**
     * Getter for the member variable $value
     *
     * @return mixed
     */
    public function getValue()
    {
        return $this->_value ;
    }

    /**
     * Setter for the member variable $alias
     *
     * @param $alias
     */
    public function setAlias(/*string*/ $alias)
    {
        $this->_alias = $alias ;
    }

    /**
     * Getter for the member variable $alias
     *
     * @return string
     */
    public function getAlias()
    {
        return $this->_alias ;
    }
}

